package com.yantong.mapper;

import com.yantong.pojo.MarketingSeckill;
import com.yantong.pojo.MarketingSeckillExample;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;

import java.util.List;
import java.util.Map;

public interface MarketingSeckillMapper {
    long countByExample(MarketingSeckillExample example);

    int deleteByExample(MarketingSeckillExample example);

    int insert(MarketingSeckill record);

    int insertSelective(MarketingSeckill record);

    List<MarketingSeckill> selectByExampleWithBLOBs(MarketingSeckillExample example);

    MarketingSeckill getMarketingSeckillById(@Param("id") Long seckillId);

    MarketingSeckill getMarketingSeckillByProductId(@Param("productId") Long productId);

    List<MarketingSeckill> selectByExample(MarketingSeckillExample example, RowBounds rowBounds);

    int updateByExampleSelective(@Param("record") MarketingSeckill record, @Param("example") MarketingSeckillExample example);


    int updateByExample(@Param("record") MarketingSeckill record, @Param("example") MarketingSeckillExample example);

    int changeStock(@Param("total") Integer total, @Param("activityId") Long activityId);

    int count(Map<String, Object> paramMap);
    List<MarketingSeckill> selectByCondition(Map<String, Object> paramMap, RowBounds rowBounds);
}